package designpatterns.adapter.adaclass.code;

/**
 * 类适配器
 */
public class VoltageAdapter extends Voltage220V implements IVoltage5V{
    @Override
    public Integer outPut5V() {
        // 适配操作
        int voltage_5 = super.outPut() / 44;
        System.out.println("适配器输出电压" +voltage_5+"伏");
        return voltage_5;
    }
}
